<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>弹性盒子子元素属性</title>
		
		<style>
			.box{
				/* 设置弹性盒子 */
				display: flex;
				/* 自动换行 */
				flex-wrap: wrap;
				
				border: 1px red solid;
				width: 580px;
				height: 480px;
				margin: 0 auto;
			}
			
			.itme{
				background-color: aqua;
				width: 100px;
				height: 100px;
				margin: 5px;
				font-size: 30px;
				/* 放大子元素 */
				/* flex-grow: 1; */
				/* 设置统一的缩放 */
				flex: 1;
			}
			/* 给子元素设置单独的样式 */
			.box .itme:nth-child(2){
				order: -2;
				/* 设置缩放比例 */
				/* flex-grow: 1; */
			}
			.box .itme:nth-child(9){
				order: -1;
				/* 设置初始长度 */
				flex-basis: 200px;
			}
		</style>
	</head>
	<body>
		<div class="box">
			<div class="itme">01</div>
			<div class="itme">02</div>
			<div class="itme">03</div>
			<div class="itme">04</div>
			<div class="itme">05</div>
			<div class="itme">06</div>
			<div class="itme">07</div>
			<div class="itme">08</div>
			<div class="itme">09</div>
			<div class="itme">10</div>
			<div class="itme">11</div>
			<div class="itme">12</div>
		</div>
	</body>
</html>